package com.lanou3g.ptp.base.mapper;

import com.lanou3g.ptp.entity.Base;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BaseMapper {
    List<Base> findAll();

    void insert(Base base);

    void deleteById(Long id);

    void deleteByIds(Long[] ids);

    List<Base> findByKeyword(String keyword);

    void updateById(@Param("id") Long id,@Param("b") Base base);

    Base findById(Long id);

}
